import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './utils/flexible'
import './assets/icons/iconfont.css'
// import './assets/style/commonStyle.css'
import './assets/iconfont/iconfont.css'

// 全局修改默认配置，点击空白处不能关闭弹窗
ElementUI.Dialog.props.closeOnClickModal.default = false
// 全局修改默认配置，按下ESC不能关闭弹窗
ElementUI.Dialog.props.closeOnPressEscape.default = false
Vue.use(ElementUI);
Vue.config.productionTip = false

new Vue({
  router,
  store,
  beforeCreate() {
    Vue.prototype.$bus = this //安装全局事件总线  用完了记得把傀儡身上的事件解绑
  },
  render: h => h(App)
}).$mount('#app')
